import axios from '@/request/http'
import { commonOutDTO, pageCommonInputDTO, pageCommonOutDTO } from '@/api/common.d'
import {
  FldmlbDeleteInputDTO,
  FldmlbSaveInputDTO,
  FldmlbGetInputDTO,
  FldmlbGetOutputDTO,
  FldmlbQueryParam,
  FldmlbQueryResult,
  FldmDeleteInputDTO,
  FldmUpdateInputDTO,
  FldmQueryParam,
  FldmQueryResult,
} from './sjzd-dto'

export default class sjzdService {
  /**
   * 删除类别编码
   */
  static deleteFldmlb(data: FldmlbDeleteInputDTO): Promise<commonOutDTO<null>> {
    return axios.post('/api/sjzd/deleteFldmlb', data)
  }
  /**
   * 保存类别编码
   */
  static saveFldmlb(data: FldmlbSaveInputDTO): Promise<commonOutDTO<null>> {
    return axios.post('/api/sjzd/saveFldmlb', data)
  }
  /**
   * 查询类别编码
   */
  static getFldmlb(data: FldmlbGetInputDTO): Promise<commonOutDTO<FldmlbGetOutputDTO>> {
    return axios.post('/api/sjzd/getFldmlb', data)
  }
  /**
   * 分页查询类别编码
   */
  static queryFldmlb(data: FldmlbQueryParam): Promise<commonOutDTO<FldmlbQueryResult[]>> {
    return axios.post('/api/sjzd/queryFldmlb', data)
  }
  /**
   * 删除分类代码
   */
  static deleteFldm(data: FldmDeleteInputDTO): Promise<commonOutDTO<null>> {
    return axios.post('/api/sjzd/deleteFldm', data)
  }
  /**
   * 保存分类代码
   */
  static saveFldm(data: FldmUpdateInputDTO): Promise<commonOutDTO<null>> {
    return axios.post('/api/sjzd/saveFldm', data)
  }
  /**
   * 查询分类代码
   */
  static queryFldm(data: FldmQueryParam): Promise<commonOutDTO<FldmQueryResult[]>> {
    return axios.post('/api/sjzd/queryFldm', data)
  }
}
